package pers.zc.activiti.service.impl;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import pers.zc.activiti.service.ServiceTask;

/**
 * @Annotion:
 * @ClassName: ServiceTaskImpl
 * @Author: Lin Fuyuan
 * @Date: 2019/9/21  20:31
 * @Version: 1.0
 */
public class ServiceTaskImpl  implements ServiceTask,JavaDelegate {

    @Override
    public void start() {
        System.out.println("start");
    }

    @Override
    public void test1() {
        System.out.println("test1");
    }

    @Override
    public void test2() {
        System.out.println("test2");
    }

    @Override
    public void end() {
        System.out.println("end");
    }

    @Override
    public void execute(DelegateExecution execution) {
        System.out.println("---------------");
        System.out.println("serviceTaskexecute流程");
        System.out.println(execution.getId());
        System.out.println(execution.getEventName());
        System.out.println("---------------");
    }
}
